import com.dmotiko.zonaoutlet.*
import com.dmotiko.general.*
import com.dmotiko.util.*

class ZOBtnTop
extends BaseClip {
	
	private var rewind:Function;
	private var mcBtn:MovieClip;
	
	private function NavBarButton() {
		super();
		MovieEffects.rewind();
	}

	public function childLoaded(child){
		dispatchEvent( { target: this, type: BaseClipEvent.READY } );
	}

	public function childChanged(child, type){
		//this._parent.childChanged(this, type);
		dispatchEvent( { target: this, type: BaseClipEvent.CHANGED, description: type } );
	}

	public function setData(data){
		super.setData(data);
		mcBtn.setData(data);
	}

	public function show(){
		this.play();
	}
	public function hide(){
		this.rewind();
	}
	
}